<template>
	<view>
		<web-view @message="handlerMessage"
			src="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx5b7a53f88c186d8b&redirect_uri=https://h5.qianyuanzuche.cn&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect">
		</web-view>
	</view>
</template>

<script setup>
	import {
		getCurrentInstance
	} from 'vue'
	const {
		proxy
	} = getCurrentInstance();

	const handlerMessage = (e) => {
		uni.setStorageSync('wxCode', e.detail.data[0].code);
	}
</script>

<style lang="scss">

</style>